export default {
  // Global page headers (https://go.nuxtjs.dev/config-head)
  head: {
    title: '氢主页：一个简洁主页，网址导航',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '氢主页：一个简洁主页，网址导航' },
      { name: 'keywords', content: '氢主页是一个简洁主页，网址导航。效率，自定义，小众，优质导航。' },
      { name: 'author', content: '氢主页' },
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      { rel: 'stylesheet', href: 'https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.css' }
    ],
    script: [
      { src: 'https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.js' },
      { src: 'https://hm.baidu.com/hm.js?a962540f7b87905294248a36d4d9f9ee' }
    ]
  },

  // Global CSS (https://go.nuxtjs.dev/config-css)
  css: [
    'ant-design-vue/dist/antd.css',
    '~assets/css/global.less'
  ],

  // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
  plugins: [
    '@/plugins/antd-ui',
    '@/plugins/baidu'
  ],

  // Auto import components (https://go.nuxtjs.dev/config-components)
  components: false,

  // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
  buildModules: [
  ],

  // Modules (https://go.nuxtjs.dev/config-modules)
  modules: [
  ],

  // Build Configuration (https://go.nuxtjs.dev/config-build)
  build: {
    // extend(config, ctx) {
    //   console.log(config)
    //   config.module.rules.push(
    //     {
    //       test:/\.less/,
    //       loader: 'less-loader', // compiles Less to CSS
    //       options: {
    //         modifyVars: {
    //           'primary-color': '#dcdee2'
    //         },
    //         javascriptEnabled: true,
    //       },
    //     }
    //   )
    // }
  }
}
